package com.mtnz.njk.model;

import com.mtnz.njk.entity.ProductEntity;
import com.mtnz.njk.entity.ProductImgEntity;
import com.mtnz.njk.entity.ProductRemarkEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Transient;
import java.util.List;

/**
 * @Description: 商品管理列表模型
 * @Author: FBL
 * @CreateDate: 2019\8\12 0012 19:25
 * @Version: 1.0
 */
@Data
public class ProductManagerListModel {
    private String productId;
    private String productName;
    private String productType;
    private String productDetailType;
    private String remarks;
    private String postage;
    private Integer soldFlag;
    private Integer combo;
    private String repertoryNum;
    // 产地
    private String productionName;
    private String component;
    private String providerName;
    private String providerPhone;
    // 封面图
    private String img;
    // 滚动图
    private List<ProductImgEntity> productImg;

    private Integer sort;
    private String sendShopDay;
    private Integer productShareNum;
    // 商品详情
    private String details;
    private Integer bigImg;

    // 规格
    private List<ProductRemarkEntity> productRemark;

    // 编辑商品字段用
    // 活动url 没啥用
    private String activeUrl;
    // 是否是测试产品
    private Integer productTest;
    private Integer providerId;
    private String productTypeId;
    private Integer productDetailTypeId;
    private String videoUrl;
    private String researchImg;
    private String comboImg;
    private List<String> comboProductIds;
    @Column(name = "share_views")
    private Integer shareViews;


    @Transient
    private List<ProductEntity> comboEntity;
}
